package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 餐饮详情对象 restaurant_order_item
 * 
 * @author 强盛酒店
 * @date 2023-03-12
 */
public class RestaurantOrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 餐饮详情id */
    private Long id;

    /** 餐饮id */
    @Excel(name = "餐饮id")
    private Long restaurantId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 数量 */
    @Excel(name = "数量")
    private Integer restaurantNum;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    @Transient
    private Restaurant restaurant;

    public Restaurant getRestaurant() {
        return restaurant;
    }

    public void setRestaurant(Restaurant restaurant) {
        this.restaurant = restaurant;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRestaurantId(Long restaurantId) 
    {
        this.restaurantId = restaurantId;
    }

    public Long getRestaurantId() 
    {
        return restaurantId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setRestaurantNum(Integer restaurantNum) 
    {
        this.restaurantNum = restaurantNum;
    }

    public Integer getRestaurantNum() 
    {
        return restaurantNum;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("restaurantId", getRestaurantId())
            .append("orderId", getOrderId())
            .append("restaurantNum", getRestaurantNum())
            .append("price", getPrice())
            .toString();
    }
}
